package club.janna.hello.model;

import club.janna.hello.annotation.Mappable;
import club.janna.hello.annotation.PositionNo;

/*
   逆变器（对象）
* */
@Mappable
public class Inverter {
//    名称
    private String name;
//    类型
    private int type;
//    直流总电流
    @PositionNo(0)
    private float dc_a;
//    直流总电压
    @PositionNo(1)
    private float dc_v;
//    直流总功率
    @PositionNo(2)
    private float dc_p;
//    交流总电流
    @PositionNo(3)
    private float ac_a;
//    交流总电压
    @PositionNo(4)
    private float ac_v;
//    交流总功率
    @PositionNo(5)
    private float ac_p;
//    版本号
    private long last_ver;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public float getDc_a() {
        return dc_a;
    }

    public void setDc_a(float dc_a) {
        this.dc_a = dc_a;
    }

    public float getDc_v() {
        return dc_v;
    }

    public void setDc_v(float dc_v) {
        this.dc_v = dc_v;
    }

    public float getDc_p() {
        return dc_p;
    }

    public void setDc_p(float dc_p) {
        this.dc_p = dc_p;
    }

    public float getAc_a() {
        return ac_a;
    }

    public void setAc_a(float ac_a) {
        this.ac_a = ac_a;
    }

    public float getAc_v() {
        return ac_v;
    }

    public void setAc_v(float ac_v) {
        this.ac_v = ac_v;
    }

    public float getAc_p() {
        return ac_p;
    }

    public void setAc_p(float ac_p) {
        this.ac_p = ac_p;
    }

    public long getLast_ver() {
        return last_ver;
    }

    public void setLast_ver(long last_ver) {
        this.last_ver = last_ver;
    }
}
